package com.bm.api.service;

import com.bm.common.dto.DynamicDto;
import com.bm.common.vo.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value="bm-Server")
public interface DynamicService {
    @PostMapping("/server/dynamic/insertDynamic.do")
    R insertDynamic(@RequestBody DynamicDto dto);

    @PostMapping("/server/dynamic/selectDynamic.do")
    List<DynamicDto> selectDynamic(@RequestParam int uid);
}
